package com.lzh.thinkpet.dao;

import com.lzh.thinkpet.model.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * AdminMapper
 */
@Mapper
public interface AdminMapper {
    /**
     * 查询所有admin
     * @return
     */
    List<Admin> findAllAdmin();

    /**
     * 查询用户名是否存在
     * @param uname
     * @return
     */
    int selectByAname(String uname);

    String selectApassByAname(String uname);

    /**
     * 按id删除admin
     * @param adminId
     * @return
     */
    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);
}